home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
089a.dms
/
089a.adf
/
EXAMPLE_PROGRAMS
/
example03.AMOS
/
example03.amosSourceCode
Wrap
AMOS Source Code
|
1992-03-06
|
1KB
|
36 lines
'=====================
'EXAMPLE PROGRAM THREE
'=====================
'Variables are numbers assigned to letters that can change value (vary)
'-----------------------------------------------------------------------
Rem turn the text cursor off, remove the mouse pointer,set text background
Rem to blue and clear the screen to blue, see EXAMPLE1 and EXAMPLE2
'--------------------------------------------------------------------------
Curs Off : Hide : Paper 0 : Cls 0
Rem the variable F1 is given its starting value change this to any number.
'--------------------------------------------------------------------------
F1=200
Rem F1 is now INCremented by 1.
'------------------------------
Inc F1
Rem five is now subtracted from F1, change this as well.
'-------------------------------------------------------
F1=F1-5
Rem We now PRINT the value of F1.
'--------------------------------
Print F1
Rem WAIT for the user to press a KEY
'-----------------------------------
Wait Key : Edit